package com.sqf.soft.dao;


import com.sqf.soft.entity.Classify;
import com.sqf.soft.utils.PageBean;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface IClassifyDao {

    List<Classify> findClassifyAll() throws Exception;

    List<Classify> findClassifyTree() throws Exception;

    List<Classify> findClassifyByPage(PageBean pageBean) throws Exception;

    int findAmountByPage(PageBean pageBean) throws Exception;

    Classify findClassifyById(String id) throws Exception;

    int createClassify(Classify classify) throws Exception;

    int updateClassify(Classify classify) throws Exception;

    int deleteClassify(Classify classify) throws Exception;

    void deleteClassifyByParentId(String parentId) throws Exception;

    void deleteStatementByClassifyId(String classifyId) throws Exception;
}
